#include  <head.h>
typedef struct stu
{
    int id;
    int age;
    char name[128];
}stu;
void *func_1(void *stu_1){
    stu *s1=(stu*)stu_1;
    printf("name =%s\n",s1->name);
    printf("id =%d\n",s1->id);
    printf("age=%d\n",s1->age);
}
int main(int argc, char const *argv[])
{
    stu s1={.id=1,.age=18,.name="张三"};
    pthread_t Tid=0;
    pthread_create( &Tid,NULL,func_1,(void*)&s1);
    //回收进程
    pthread_join(Tid,NULL);
    return 0;
}
    